package independence.pinetree.testing;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;

public class SimpleWriterClient {
	
	public static void main(String[] args) throws IOException {
		Socket socket = new Socket();
		socket.connect(new InetSocketAddress(InetAddress.getLocalHost(), 7463));
		Writer output = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
		output.write("Hello World\n");
		output.flush();
		output.write("<node value=\"values\">Kewl stuff man</node>\n");
		output.flush();
		socket.close();
	}
}
